<?php
class menu_block_1 extends Update_Model_Database_AbstractChange{

	protected $comment="Создание таблицы menu_block";

	public function up(){
		$sql='CREATE TABLE IF NOT EXISTS menu_block(
  					id INT(11) NOT NULL AUTO_INCREMENT,
  					label TEXT DEFAULT NULL,
					menu_view TEXT DEFAULT NULL,
					class TEXT DEFAULT NULL,
					PRIMARY KEY (id)
				)
				CHARACTER SET utf8
				COLLATE utf8_general_ci;';
		$this->db->query($sql);
	}

	public function down(){
		$sql='DROP TABLE IF EXISTS menu_block;';
		$this->db->query($sql);
	}

}